using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.IO;

namespace Adge.UI.WebControls
{  
    public class AdgeImage : Image
    {
        public override string ImageUrl
        {
            get
            {
                return base.ImageUrl;
            }
            set
            {
                if (!File.Exists(Context.Server.MapPath(value)))
                {
                    base.ImageUrl = "~/images/exts/unknown.png";
                }
                else
                {
                    base.ImageUrl = value;
                }
            }
        }
    }
}
